package ai;

/**
 * Abstract a movement action for 8 Puzzle problem. The object properties indicate 
 * board spaces, which are numbered from the the first line on the top left to right
 * and then the second line following numbering for each board space, an so on until
 * last integer is assigned to the space in the bottom right of the board.
 * 012
 * 345
 * 678
 *  
 * @author bernard
 *
 */
public class Action {
	
	public Action(int initPos, int destPos){
		this.initPos = initPos;
		this.destPos = destPos;
	}
	
	/**
	 * Indicates from which position on the puzzle we are taking one integer to move it. 
	 */
	public int initPos = 0;
	
	/**
	 * Indicates to which position we are moving the integer. The destination position.
	 */
	public int destPos = 0;
}
